<?php

class Question extends BaseQuestion
{
  public function __toString()
  {
    return  $this->getQuestion();
  }
  public function isMultiply()
  {
    $c = new Criteria();
    $c->add(AnswerPeer::QUESTION_ID, $this->id);
    $c->add(AnswerPeer::TRUE_ANSWER, true);
    $true_answers = AnswerPeer::doSelect($c);
    if(count($true_answers) > 1)
    {
        return true;
    }
    else
    {
        return  false;
    }
  }
}
